package com.itheima.Demo;

public class Tsek2 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = 30;
        int i = sum1(a, b);
        System.out.println(i);
        int i1 = sum2(a, b, c);
        System.out.println(i1);
    }
    public static int sum1(int a,int b){
        return a+b;
    }

    public static int sum2(int a,int b,int c){
        return a+b+c;
    }
}
